package sctu.edu.java.year2016.team07.wenjia.day20160531.Chapter9_2;

import sctu.edu.java.year2016.team01.lishuai.day20160522.chapter6_1.*;
import sctu.edu.java.year2016.team01.lishuai.day20160522.chapter6_1.Number;
import sctu.edu.java.year2016.team07.nieying.day20160530.chapter9_2.Multiply;
import sun.swing.AccumulativeRunnable;

import java.util.Scanner;

/**
 * Created by 001 on 2016/5/31.
 * 创建一个类，在该类中定义一个方法，并在方法内部创建一个局部内部类，通过局部内部类求任意两个数的乘积
 */
public class Product {


      public void number(){

        class Show{

                     int n;
                      int a,b;

            public int show(int setM){

                int m=setM;
                return m;

            }



                public void setM(){



                    System.out.println("输入变量a的值是：");

                    Scanner scan=new Scanner(System.in);

                    a=scan.nextInt();


                    System.out.println("输入变量b的值是:");

                    Scanner in1=new Scanner(System.in);

                    b=scan.nextInt();


                    int n=a*b;

                    System.out.println("输出的两个数的乘积是:"+n);
            }
        }
        Show show=new Show();
        show.setM();

    }
      public static void main(String[]args){
          Product n=new Product();
          n.number();


      }

}
